import {createSlice} from '@reduxjs/toolkit'

let bill = createSlice({
    name:'bill',
    initialState:{
        billList:[]
    },
    reducers:{
        getList(state,{payload}){
            state.billList = payload
        }
    }
})
const {getList} = bill.actions
const sendGetList = ()=>{
    return (dispatch)=>{
        // dispatch(getList())
    }
}
export {sendGetList}
const reducer = bill.reducer

export default reducer